package com.dalei.vdsmanager.security.service;

import java.io.Serializable;
import java.util.List;

import com.dalei.vdsmanager.security.dao.Role;
import com.dalei.vdsmanager.security.dao.RoleDao;

public class RoleServiceImpl implements RoleService, Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 4748104959480707124L;
	
	private RoleDao roleDao;

	public RoleDao getRoleDao() {
		return roleDao;
	}

	public void setRoleDao(RoleDao roleDao) {
		this.roleDao = roleDao;
	}

	@Override
	public List<Role> getRoles() {
		// TODO Auto-generated method stub
		return roleDao.findRoles();
	}

	@Override
	public Role getRoleById(int id) {
		// TODO Auto-generated method stub
		return roleDao.findRoleById(id);
	}

	@Override
	public Role getRoleByRoleName(String roleName) {
		// TODO Auto-generated method stub
		return roleDao.findRoleByRoleName(roleName);
	}
	
}
